package com.zhanghe.study.mybatisplus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * @author zh
 * @date 2021/1/11 17:20
 */
// 使用通用mapper需要指定实体类所对应的表名
public class User implements Serializable {

    public static final long serialVersionUID =  1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private double account;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAccount() {
        return account;
    }

    public void setAccount(double account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", account=" + account +
                '}';
    }
}
